package com.ohuang.baseapp.mvp;

import com.ohuang.baseapp.base.BaseFraction;
import ohos.aafwk.ability.fraction.Fraction;

public abstract class BaseMvpFraction<T extends BasePresenter>  extends BaseFraction {
    protected T mPresenter;

    @Override
    protected void onComponentDetach() {
        super.onComponentDetach();
        if (mPresenter != null) {
            mPresenter.detachView();
        }
    }
}
